package signal;

/**
 * The enum Role.
 */
public enum Role {
    /**
     * Publisher role.
     */
    PUBLISHER(0),
    /**
     * Subscriber role.
     */
    SUBSCRIBER(1);

    private final int role;

    /**
     * Instantiates a new Role.
     *
     * @param role the role
     */
    Role(int role) {
       this.role = role;
    }

    /**
     * Gets role.
     *
     * @return the role
     */
    public int getRole() {
        return role;
    }
}
